import java.util.List;

import javax.swing.event.ListSelectionEvent;

import junit.framework.TestCase;

public class Cards2Test extends TestCase {

	public void maxCardsDealt() {
		// Start the game
		WarGame g = new WarGame();

		// Select 10 players
		g.play(10);

		// Select a specific player
		List<Player> allPlayers = g.getPlayers();
		// int cardInfo = g.players.get(1).hand.size();

		// Get player min and player max to have the same number of cards
		// (List<card> getHand())
		assertEquals(5, allPlayers.get(0).hand.size());
	}

	public void maxCardDealt2() {
		int playerSize = 10;
		WarGame testGame = new WarGame();
		testGame.play(10);
		int cardInfo = testGame.players.get(--playerSize).hand.size();
		assertEquals(10,10);
	}
}
